const fs = require('fs');
// const path = require('path');
export function createDirIfNotExists(filePath:string) {
    try {
      if (!fs.existsSync(filePath)) {
        fs.mkdirSync(filePath);
      }
      return filePath;
    } catch (err) {
      console.error(`Error creating directory: ${err}`);
      return null;
    }
  }